package com.oraycn.esbasic.utils;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by ZN on 3/18/15. 
 */
public class IdGenerateUtils {
    private static AtomicInteger messgeID = new AtomicInteger(1);

    public static int generateMessageId() {
        return messgeID.getAndAdd(1);
    }
}
